package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.News;
import cn.wolfcode.trip.base.domain.StrategyDetail;
import cn.wolfcode.trip.base.query.NewsQuery;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface NewsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(News record);

    News selectByPrimaryKey(Long id);

    List<News> selectAll();

    int updateByPrimaryKey(News record);

    List<News> selectForList(QueryObject qo);

    void updateBrowseNum(News news);

    //全局搜索数量
    int selectForCount(QueryObject qo);
    //搜索
    List<News> query(QueryObject qo);
}